package com.modular.extra.fm.data.action;

import cn.hutool.json.JSONUtil;
import ntd.action.ActionAbs;
import ntd.action.bo.ActionInfo;
import ntd.action.bo.ActionOutBo;
import ntd.util.frame.task.handle.fm.bo.FmDataRecordBo;
import ntd.util.frame.task.handle.fm.util.ToolFmData;

public class ActionFmDataNewData extends ActionAbs {

    @Override
    public ActionInfo info() {
        return new ActionInfo("富铭 - 实时数据查询", "action-fm-data-new", this);
    }

    @Override
    public ActionOutBo handle() {
        FmDataRecordBo fmDataRecordBo = ToolFmData.OPT_FM_DATA.newData(actionInBo.getDataCode());
        return new ActionOutBo(fmDataRecordBo);
    }
}
